<style>
    .win {
        color: Green;
    }
    .lost {
        color: Fuchsia;
    }
    .btnplus {height:12pt; width:12pt; margin:0; border:1px; background:#6363A6; color:white; font:10pt Tahoma;cursor: pointer;}
    .btnmin {height:12pt; width:12pt; margin:0; border:1px; background:#964A6E; color:white; font:10pt Tahoma;cursor: pointer;}
    .btnchoice {
        padding: 2pt 2pt 2pt 2pt;
        border: 1pt solid #aaa;
        cursor: pointer;
    }
    .btnchoiced {
        padding: 2pt 2pt 2pt 2pt;
        border: 1px solid Lime;
        background-color: Green;
        color: white;
    }
    .rate {font-weight:bold; color:red; font-family:Tahoma}
    .td1red {
        background-color:#DFF9FF;color:red;font-weight:bold;text-align:center;
    }
    .td1blue {
        background-color:#DFF9FF;color:blue;font-weight:bold;text-align:center;
    }
    .td1green {
        background-color:#DFF9FF;color:green;font-weight:bold;text-align:center;
    }

    .showmaxmoney{
        text-align:center;
        z-index: 1;
        position: absolute;
        border: 2px dashed #FFB85D;
        background-color: #FFFFFF;
        padding:0;
        margin: 0;
        width:560px;
        height:360px;
        top:25%;
        left:25%;
    }

    .noneshow{
        display:none;
        z-index: -1;
        top: 0;
        border: 0;
        background-color: #FFFFFF;
        padding:0;
        margin: 0;
    }
</style>

<script>
    // 秀出热门号码画面
    function showmaxmoney(){
        var oObj = document.getElementById("divmaxmoney");
        oObj.innerHTML = "<iframe src='op.php?op=admin&fp=maxmoney&mod=1' width='540' height='370'></iframe><br /><input type='button' value='关闭' onclick='javascript:closeDiv002();'>"; 
        oObj.className = "showmaxmoney";
    }
    // 关闭画面
    function closeDiv002(){
        var oObj = document.getElementById("divmaxmoney");
        oObj.innerHTML = "";
        oObj.className= "noneshow";
    }
    // 送出
    function submitmaxmoney(){
        var oObj = document.getElementById("divmaxmoney");
        var oFrm = document.getElementById("frmmaxmoney");
        oObj.className= "noneshow";
        oObj.innerHTML = "<iframe src='' name=ifrmMax></iframe>"; 
        oFrm.target = "ifrmMax";
        oFrm.submit();
        clearMaxmoneyForm();
        //oObj.innerHTML = "";
        //alert('更新成功');
        return false;
    }

    // 清除资料
    function clearMaxmoneyForm(){
        document.getElementById("qcnum").value = "";
        document.getElementById("nts").value = "";
    }
 
</script>
<script src="js_3d/showRateRecord.js"></script>
<script src="scr/{jslang}/now1.js"></script>
<div id="divmaxmoney"></div>
<div id="divRateRecord"></div>
{menuList}
<br>
<table width="980" border=0 cellpadding=0 cellspacing=0>
    <tr><td width="50%">
            <span id="hktime"></span>，<span id="countdownstr"></span>
        </td><td width="40%">
            <input {startnowdisable} type=button value=启动走飞 onclick="startprotnow()" onmouseout="this.style.color='';" onmouseover="this.style.color='#0CDDFF';">&#12288;&#12288;
            <input {stopnowdisable0} type=button value=立即停止下注 onclick="stopnow0()" onmouseout="this.style.color='';" onmouseover="this.style.color='#0CDDFF';">
        </td><td width="10%">
            目前总连线数：<span id="online_sum"></span></td></tr>
</table>

<table width="998" border=0 cellpadding=5 cellspacing=0>
    <tr valign="top"><td colspan=5>
            <div id=div0></div>
            <table width="998" border=0 cellpadding=5 cellspacing=0>
                <tr><td width="57%">快选 
                        <span id=btn011 class=btnchoiced onclick="chsbtn(11)">红</span>
                        <span id=btn012 class=btnchoice onclick="chsbtn(12)">蓝</span>
                        <span id=btn013 class=btnchoice onclick="chsbtn(13)">绿</span>
                        <span id=btn014 class=btnchoice onclick="chsbtn(14)">单</span>
                        <span id=btn015 class=btnchoice onclick="chsbtn(15)">双</span>
                        <span id=btn016 class=btnchoice onclick="chsbtn(16)">大</span>
                        <span id=btn017 class=btnchoice onclick="chsbtn(17)">小</span>
                        <span id=btn018 class=btnchoice onclick="chsbtn(18)">合单</span>
                        <span id=btn019 class=btnchoice onclick="chsbtn(19)">合双</span>
                        <span id=btn022 class=btnchoice onclick="chsbtn(22)">家禽</span>
                        <span id=btn023 class=btnchoice onclick="chsbtn(23)">野兽</span>
                        <span id=btn037 class=btnchoice onclick="chsbtn(37)">特尾大</span>
                        <span id=btn038 class=btnchoice onclick="chsbtn(38)">特尾小</span>
                        <span id=btn039 class=btnchoice onclick="chsbtn(39)">合尾大</span>
                        <span id=btn040 class=btnchoice onclick="chsbtn(40)">合尾小</span>
                    <td width="43%">
                        <p>
                        <form action="op.php?op=admin&fp=maxmoney&mod=0" method="post" id="frmmaxmoney" >
                            <a href="javascript:showmaxmoney();">热门号码</a> <input size=20 name="qcnum" value="" id="qcnum">&#12288;单注限额 <input size=4 name="nts" id="nts" value="0">&#12288;
                            <input type="button" value="确定" onclick="submitmaxmoney();"> <input type="button" value="清除" onclick="javascript:clearMaxmoneyForm();">
                        </form></p>


                    </td></tr>
                <tr><td width="57%">&#12288;&#12288; 
                        <span id=btn025 class=btnchoice onclick="chsbtn(25)">红单</span>
                        <span id=btn026 class=btnchoice onclick="chsbtn(26)">红双</span>
                        <span id=btn027 class=btnchoice onclick="chsbtn(27)">红大</span>
                        <span id=btn028 class=btnchoice onclick="chsbtn(28)">红小</span>
                        <span id=btn029 class=btnchoice onclick="chsbtn(29)">蓝单</span>
                        <span id=btn030 class=btnchoice onclick="chsbtn(30)">蓝双</span>
                        <span id=btn031 class=btnchoice onclick="chsbtn(31)">蓝大</span>
                        <span id=btn032 class=btnchoice onclick="chsbtn(32)">蓝小</span>
                        <span id=btn033 class=btnchoice onclick="chsbtn(33)">绿单</span>
                        <span id=btn034 class=btnchoice onclick="chsbtn(34)">绿双</span>
                        <span id=btn035 class=btnchoice onclick="chsbtn(35)">绿大</span>
                        <span id=btn036 class=btnchoice onclick="chsbtn(36)">绿小</span>
                        <span id=btn021 class=btnchoice onclick="chsbtn(21)">前10</span>
                        <span id=btn024 class=btnchoice onclick="chsbtn(24)">前 5</span>
                        <span id=btn020 class=btnchoice onclick="chsbtn(20)">全部</span>
                    <td width="43%"><input type=checkbox name=chkhint onclick=cb() {chint0}>大单视窗提示
                        &#12288;<input type=checkbox name=chksound onclick=cs() {chint1}>大单音效提示
                        &#12288;<input type=button value="资料刷新" onclick=timer() onmouseout="this.style.color='';" onmouseover="this.style.color='#0CDDFF';">&#12288;
                    </td></tr>
                <tr><td colspan="2">补货赔率：
                        <input name=bo1 value="{bo1}" size=3>
                        &#12288;最大输值：
                        <input name=bo2 value="{bo2}" size=8>&#12288;
                        <input type=button value="补货计算"  onclick=bo() onmouseout="this.style.color='';" onmouseover="this.style.color='#0CDDFF';">
                        &#12288;&#12288;&#12288;&#12288;&#12288;&#12288;

                        增量 
                        <span id=btn05 class=btnchoice onclick="chsbtn(5)">5</span>
                        <span id=btn04 class=btnchoice onclick="chsbtn(4)">4</span>
                        <span id=btn03 class=btnchoice onclick="chsbtn(3)">3</span>
                        <span id=btn02 class=btnchoice onclick="chsbtn(2)">2</span>
                        <span id=btn01 class=btnchoice onclick="chsbtn(1)">1</span>
                        <span id=btn005 class=btnchoiced onclick="chsbtn(0.5)">0.5</span>
                        <span id=btn004 class=btnchoice onclick="chsbtn(0.4)">0.4</span>
                        <span id=btn003 class=btnchoice onclick="chsbtn(0.3)">0.3</span>
                        <span id=btn002 class=btnchoice onclick="chsbtn(0.2)">0.2</span>
                        <span id=btn001 class=btnchoice onclick="chsbtn(0.1)">0.1</span>
                        <span id=btn0005 class=btnchoice onclick="chsbtn(0.05)">0.05</span>
                        <span id=btn0003 class=btnchoice onclick="chsbtn(0.03)">0.03</span>
                        <span id=btn0001 class=btnchoice onclick="chsbtn(0.01)">0.01</span>
                        <span id=btn00005 class=btnchoice onclick="chsbtn(0.005)">0.005</span>
                        <span id=btn00001 class=btnchoice onclick="chsbtn(0.001)">0.001</span>
                        &#12288; 
                        <input type=button onclick="btnratediff(-1)" value=- class=btnmin>
                        <input type=button onclick="btnratediff(1)" value=+ class=btnplus>
                    </td></tr>
            </table>
        </td>
    </tr>
</table>

<table width="998" border=0 cellpadding=5 cellspacing=0>
    <tr valign=top cellpadding=5>
        <td><div id=div1></div></td>
        <td><div id=div2></div></td>
        <td><div id=div3></div></td>
        <td><div id=div47></div></td>
    </tr>
</table>

<table width="998" border=0 cellpadding=5 cellspacing=0>
    <tr valign=top cellpadding=5>
        <td><div id=div28></div></td>
        <td><div id=div30></div></td>
        <td><div id=div2a></div></td>
    </tr>
</table>

<table width="998" border=0 cellpadding=5 cellspacing=0>
    <tr valign=top cellpadding=5>
        <td><div id=div18></div>合计：<b id=amount18></b></td>
        <td> </td>
        <td><div id=div14></div>合计：<b id=amount14></b></td>
    </tr>
</table>

<table width="998" border=0 cellpadding=5 cellspacing=0>
    <tr valign=top cellpadding=5>
        <td width="260"><div id=div13></div></td>
        <td width="280"><div id=div49></div></td>
        <td><div id=div50></div></td>
    </tr>
</table>

<script>
    _id = {lotto_id};
    _open = "{open}";

    _total = "合计";
    _tb0head = "<td nowrap>号码</td><td nowrap>金额</td><td nowrap>输赢</td><td nowrap>补货</td><td nowrap>赔率</td><td nowrap>操盘</td>";
    _tb1head = "<td nowrap>类别</td><td nowrap>金额</td><td nowrap>输赢</td><td nowrap>赔率</td><td nowrap>操盘</td>";
    _tb14head = "<td nowrap>生肖</td><td nowrap>金额</td><td nowrap>输赢</td><td nowrap>赔率</td><td nowrap>操盘</td>";
    _tb18head = "<td nowrap>半波</td><td nowrap>金额</td><td nowrap>输赢</td><td nowrap>赔率</td><td nowrap>操盘</td>";
    _tb19head = "<td nowrap>六肖</td><td nowrap>金额</td><td nowrap>输赢</td><td nowrap>赔率</td><td nowrap>操盘</td>";
    _tb46head = "<td nowrap width='50'>特大中小</td><td nowrap>金额</td><td nowrap>输赢</td><td nowrap>赔率</td><td nowrap>操盘</td>";
	_tb49head = "<td nowrap>特码头</td><td nowrap>金额</td><td nowrap>输赢</td><td nowrap>赔率</td><td nowrap>操盘</td>";
	_tb50head = "<td nowrap>特码尾</td><td nowrap>金额</td><td nowrap>输赢</td><td nowrap>赔率</td><td nowrap>操盘</td>";
    _name1 = ["","特单","特双"];
    _name2 = ["","特大","特小"];
    _name2a = ["","家禽","野兽"];
    _name3 = ["","合单","合双"];
    _name13 = ["","红波","蓝波","绿波"];
    _name14 = ["","鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"];
    _name18 = ["","红单","红双","红大","红小","蓝单","蓝双","蓝大","蓝小","绿单","绿双","绿大","绿小"];
    _name28 = ["","特尾大","特尾小"];
    _name30 = ["","合尾大","合尾小"];
    _name46 = ["","大","中","小"];
    _name47 = ["","合大","合小"];
	_name49 = ["头0","头1","头2","头3","头4"];
	_name50 = ["尾0","尾1","尾2","尾3","尾4","尾6","尾7","尾8","尾9"];
    _status = "更新资料中.....";

    function nowdate()
    {
        document.all.hktime.innerHTML = "香港时间：<b>"+now.getDate()+"日"+d2(now.getHours())+":"+d2(now.getMinutes())+":"+d2(now.getSeconds())+"</b>";
        now.setTime(now.getTime() + 1000);
    }

    function countdown()
    {
        var str = "<font color=red><b>已经截止下注！</b></font>";
        timediff = timestap;
        if (timestap >= 0) {
            days = Math.floor(timediff / (60 * 60 * 24));
            timediff -= days * (60 * 60 * 24);
            hours = Math.floor(timediff / (60 * 60));
            timediff -= hours * (60 * 60);
            mins = Math.floor(timediff / (60));
            timediff -= mins * (60);
            secs = Math.floor(timediff);
	
            str = "距离截止下注时间还有 ";
            if (days > 0 ) str += "<b>" + days + "</b> 天 ";
            if (hours > 0) str += "<b>" + hours + "</b> 小时 ";
            if (mins > 0) str += "<b>" + mins + "</b> 分钟 ";
            str += "<b>" + secs + "</b> 秒 ";
            timestap-=1;
        }
        countdownstr.innerHTML =  str;
    }

    var timestap = {timestap};
    var now = new Date(1000 * {phptime});

    setInterval("nowdate()", 1000);
    setInterval("countdown()", 1000);

    function stopnow0()
    {
        if(confirm('确定要立即停止下注吗?')){
            window.status = "全部停止下注中...";
            if (timer_id) clearTimeout(timer_id);
            XH1.open("POST","op.php?op=admin&fp=ratediff&cmd=stopnow0",false); 
            try{XH1.send("");}catch(E){}
            //	alert("已全部停止下注！");
            event.srcElement.disabled=true;
            window.status = "";
            timer();
            location.reload();
        }
    }

    function startprotnow()
    {
        window.status = "走飞功能启动中...";
        if (timer_id) clearTimeout(timer_id);
        XH1.open("POST","op.php?op=admin&fp=ratediff&cmd=startprot",false); 
        try{XH1.send("");}catch(E){}
        //	alert("走飞功能已启动！");
        event.srcElement.disabled=true;
        window.status = "";
        timer();
        location.reload();
    }

</script>